package com.abel.bigwater.dataserver.model.qdies

import io.netty.buffer.ByteBuf

class MainAskActiveOnlineData : DtenEmptyData() {
    override var type = FuncType.AskActiveOnline
}

class MainSetActiveOnlineData(_len: Int) : D10BaseData(_len) {
    override var type = FuncType.SetActiveOnline

    var activeList: ByteArray? = null

    override fun fill(buf: ByteBuf) {
        buf.writeByte(activeList!!.size)
        activeList!!.forEach { buf.writeByte(it.toInt()) }
    }

    override fun parse(buf: ByteBuf): Boolean {
        TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
    }

    override fun count(): Int = len

}